Skip to content

Conversation

@t-kalinowski
Copy link

@t-kalinowski t-kalinowski commented Jun 7, 2023

  • add OBJSXP as an alias for S4SXP
  • make dput() and print() do something sensible on an OBJSXP when the S4 bit is not set
  • typeof() returns "object" on an OBJSXP if the S4 bit is unset
  • .Internal(inspect(x)) prints OBJSXP instead of S4SXP if the S4 bit is unset

Also, this PR adds a base::object() constructor that returns an OBJSXP with the S4 bit unset. This is mainly for testing and experimentation purposes, and I'm not currently thinking it should be added to base R. The code for the constructor is commented out, since it's not clear if this is a good thing to add to base R presently.

@t-kalinowski
Copy link
Author

This is merged into master now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant